# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=multipart
pkgname=python-$_pkgname
pkgver=0.2.4
pkgrel=3
pkgdesc='Parser for multipart/form-data'
arch=('any')
url='https://github.com/defnull/multipart'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('5a0cbcbbfc3232257a607892d5d2176e03ff9c7056d146b99ba1e8067c8736f2e38676e08622d5100cf85b172affbfbd8938da92819e39fc4739184f666a14ed')

build() {
  cd $_pkgname-$pkgver

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
